package guoanmaker.operator.business.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * DESC:
 * Created by JTing on 2017/12/14 17:17
 */
@Entity
@Table(name = "t_provide_shop")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ProvideShop extends IdEntity {

    @OneToOne
    @JoinColumn(name = "business_id")
    private ProviderBusiness providerBusiness;

  //以下8个属性在与business的表的值对应,审核通过时请保持一致
    private String businessName;  //店铺名称
    private String licensPhone;            //电话
    private String companyAdress;  //地址
    private String companyProvince;
    private String companyCity;
    private String companyArea;
    private String companyLogo;  //店铺logo
    private String companyLicenseReplica; //营业执照

    private Date createTime;
    private String banner;      //店铺焦点图
    private String introduce;        //店铺简介
    private Long followNum;        //关注数目
    private Integer state;  //0待审核 1审核成功  2审核失败   3冻结
    private Date stateTime;  //状态变更时间
    private Date acceptTime;  //通过申请时间
    private Date refuseTime;  //拒绝时间
    private String cal;   //省市区
    private String bannerForPc;  //店铺焦点图 pc端使用

}
